package com.stylefeng.symka.core.beetl;

import com.stylefeng.symka.common.constant.factory.ConstantFactory;
import com.stylefeng.symka.core.util.CookieKit;
import com.stylefeng.symka.core.util.KaptchaUtil;
import com.stylefeng.symka.core.util.ToolUtil;
import org.beetl.ext.spring.BeetlGroupUtilConfiguration;

public class BeetlConfiguration extends BeetlGroupUtilConfiguration {

    @Override
    public void initOther() {

        groupTemplate.registerFunctionPackage("shiro", new ShiroExt());
        groupTemplate.registerFunctionPackage("tool", new ToolUtil());
        groupTemplate.registerFunctionPackage("kaptcha", new KaptchaUtil());
        groupTemplate.registerFunctionPackage("text", new I18n());
        groupTemplate.registerFunctionPackage("cookie", new CookieKit());

        groupTemplate.registerFunctionPackage("constant", new ConstantFactory());

    }

}
